import request from '../utils/request'

export function getListComment(params,page) {
  return request({
    url: '/comment/getListComment/'+params+'?pageNum='+page.pageNum+'&pageSize='+page.pageSize,
    method: 'post'
  })
}

export function xiangComment(params){
  return request({
    url: '/comment/xiang/'+params,
    method: 'get'
  })
}


export function saveOrUpdateComment(params){
  return request({
    url: '/comment/saveOrUpdateComment',
    method: 'post',
    data: params
  })
}

export function delComment(params) {
  return request({
    url: '/comment/delComment/' + params,
    method: 'post'
  })
}

//课程评论
export function getComments(id){
  return request({
    url:'/comment/getComments/'+id,
    method:"get"
  })
}
export function createComment(data){
  return request({
    url:'/comment/create',
    method:"post",
    data
  })
}


